import request from '@/utils/request'

// 查询活动发布列表
export function listActivity(query) {
  return request({
    url: '/od_organizer/activity_organizer/list',
    method: 'get',
    data: query
  })
}

// 新增报名审核
export function addRegister(data) {
  return request({
    url: '/od_organizer/register',
    method: 'post',
    data: data
  })
}


//获取报名的列表
export function listRegister(query) {
  return request({
    url: '/od_organizer/register/list',
    method: 'get',
    data: query
  })
}

//获取登录用户信息
export function getInfo() {
  return request({
    url: '/getInfo',
    method: 'get'
  })
}

//获取活动id
export function getActivity(id) {
  return request({
    url: '/od_organizer/activity_organizer/' + id,
    method: 'get'
  })
}

// 删除报名审核
export function delRegister(id) {
  return request({
    url: '/od_organizer/register/' + id,
    method: 'delete'
  })
}

// 查询评论列表
export function listCcomment(query) {
  return request({
    url: '/ccomment/ccomment/list',
    method: 'get',
    params: query
  })
}

// 查询评论详细
export function getCcomment(id) {
  return request({
    url: '/ccomment/ccomment/' + id,
    method: 'get'
  })
}

// 新增评论
export function addCcomment(data) {
  return request({
    url: '/ccomment/ccomment',
    method: 'post',
    data: data
  })
}

// 查询活动细节详细
export function getActivitydetail(id) {
  return request({
    url: '/od/activitydetail/' + id,
    method: 'get'
  })
}

// 新增活动细节
export function addActivitydetail(data) {
  return request({
    url: '/od/activitydetail',
    method: 'post',
    data: data
  })
}

// 查询活动细节列表
export function listActivitydetail(query) {
  return request({
    url: '/od/activitydetail/list',
    method: 'get',
    params: query
  })
}

// 修改活动细节
export function updateActivitydetail(data) {
  return request({
    url: '/od/activitydetail',
    method: 'put',
    data: data
  })
}

// 查询评价查看列表
export function listScore(query) {
  return request({
    url: '/od_organizer/score/list',
    method: 'get',
    params: query
  })
}

// 查询评价查看详细
export function getScore(id) {
  return request({
    url: '/od_organizer/score/' + id,
    method: 'get'
  })
}

// 新增评价查看
export function addScore(data) {
  return request({
    url: '/od_organizer/score',
    method: 'post',
    data: data
  })
}

// 修改评价查看
export function updateScore(data) {
  return request({
    url: '/od_organizer/score',
    method: 'put',
    data: data
  })
}

// 删除评价查看
export function delScore(id) {
  return request({
    url: '/od_organizer/score/' + id,
    method: 'delete'
  })
}

// 查询活动状态列表
export function listActivitystatus(query) {
  return request({
    url: '/od/activitystatus/list',
    method: 'get',
    params: query
  })
}

// 查询活动状态详细
export function getActivitystatus(id) {
  return request({
    url: '/od/activitystatus/' + id,
    method: 'get'
  })
}

// 新增活动状态

export function addActivitystatus(data) {
  return request({
    url: '/od/activitystatus',
    method: 'post',
    data: data
  })
}

// 修改活动状态

export function updateActivitystatus(data) {
  return request({
    url: '/od/activitystatus',
    method: 'put',
    data: data
  })
}

// 删除活动状态

export function delActivitystatus(id) {
  return request({
    url: '/od/activitystatus/' + id,
    method: 'delete'
  })
}